package com.project.biz;

import com.baomidou.mybatisplus.extension.service.IService;
import com.project.entity.CmsRecoveryOrderPro;
import com.project.pojo.model.AddRecoveryOrderProModel;

import java.util.List;

/**
 * @Description: 回收订单商品业务层接口类
 * @Author: zhuchi
 * @CreateDate: 2020/11/13 21:39
 * @Version: 1.0
 */
public interface CmsRecoveryOrderProBiz extends IService<CmsRecoveryOrderPro> {

    /**
     * 根据回收订单ID获取回收订单商品
     * @param recoveryOrderId
     * @return
     */
    List<CmsRecoveryOrderPro> getRecoveryOrderPro(Long recoveryOrderId);

    /**
     * 添加回收订单商品
     * @param recoveryOrderProModels
     * @param recoveryOrderId
     * @return
     */
    int addRecoveryOrderPro(List<AddRecoveryOrderProModel> recoveryOrderProModels, Long recoveryOrderId);

}
